import thenFs from "then-fs";

async function fn() {
    try {
        const str1 = await thenFs.readFile('./txt/a.txt', 'utf8')
        console.log(str1)
        const str2 = await thenFs.readFile('./txt/bb.txt', 'utf8')
        console.log(str2)
        const str3 = await thenFs.readFile('./txt/c.txt', 'utf8')
        console.log(str3)
    } catch (e) {
        console.log('文件读取错误' + e.message)
    } finally {
        console.log('无论有没有错误都要执行的代码')
    }
}

fn()